/***************************************************************************
 *   Copyright (C) 2007 by Phillip Aldridge   *
 *   phillip@imi21.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#include "stationdata.h"

StationData::StationData()
{
   sdDate="0000-00-00";
   sdTime="00:00:00";
   sdTempIn="0";
   sdTempOut="0";
   sdTempMax="0";
   sdTempMin="0";
   sdTempMaxTime="0";
   sdTempMinTime="0";
   sdDewpoint="0";
   sdRelHumIn="0";
   sdRelHumOut="0";
   sdWindSpeed="0";
   sdWindDirection="N";
   sdWindAngle="1";
   sdWindChill="0";
   sdRain1h="0";
   sdRain24h="0";
   sdRain1w="0";
   sdRain1m="0";
   sdRainTotal="0";
   sdRelPressure="0";
   sdAbsPressure="0";
   sdTendency="0";
   sdForecast="???";
   sdWindSpeed="0";

}


StationData::~StationData()
{
}
void StationData::setDate( QString  s)
{
   sdDate = s;
}
QString StationData::date()
{
   return( sdDate );
}


void StationData::setTime(QString s)
{
   sdTime = s;
}
QString StationData::time()
{
   return( sdTime );
}

void StationData::setTempIn( QString s )
{
   sdTempIn = s;
}
float StationData::tempIn()
{
   return( sdTempIn.toFloat() );
}
void StationData::setTempOut( QString s )
{
   sdTempOut = s;
}
float  StationData::tempOut()
{
   return( sdTempOut.toFloat() );
}
void StationData::setTempMax( QString s )
{
   sdTempMax = s;
}
float StationData::tempMax()
{
   return( sdTempMax.toFloat() );
}
void StationData::setTempMin( QString s )
{
   sdTempMin = s;
}
float StationData::tempMin()
{
   return( sdTempMin.toFloat() );
}
void StationData::setTempMaxTime( QString s )
{
   sdTempMaxTime = s;
}
QString StationData::tempMaxTime()
{
   return( sdTempMaxTime );
}
void StationData::setTempMinTime( QString s )
{
   sdTempMinTime = s;
}
QString StationData::tempMinTime()
{
   return( sdTempMinTime );
}
//
void  StationData::setRelHumIn( QString s )
{
   sdRelHumIn = s;
}
QString  StationData::relHumIn( ){
   return( sdRelHumIn );
}
//
void  StationData::setRelHumOut( QString s )
{
   sdRelHumOut = s;
}
QString  StationData::relHumOut( ){
   return( sdRelHumOut );
}
//
void StationData::setDewpoint( QString s )
{
   sdDewpoint = s;
}

float StationData::dewpoint(){
   return( sdDewpoint.toFloat() );
}
//
void  StationData::setWindSpeed( QString s )
{
   sdWindSpeed = s;
}
float StationData::windSpeed( ){

 return (sdWindSpeed.toFloat());
}
//
void StationData::setWindDirection( QString s )
{
   sdWindDirection = s;
}
QString StationData::windDirection( ){
   return( sdWindDirection );
}
//
void StationData::setWindAngle( QString s )
{
   sdWindAngle = s;
}
float StationData::windAngle( ){
   return sdWindAngle.toFloat();
}
//
void  StationData::setWindChill( QString s )
{
   sdWindChill = s;
}
QString  StationData::windChill( ){
   return( sdWindChill );
}
//
void StationData::setRelPressure( QString s )
{
   sdRelPressure = s;
}
QString StationData::relPressure( ){
   return( sdRelPressure );
}
//
void StationData::setAbsPressure( QString s )
{
   sdAbsPressure  = s;
}
QString StationData::absPressure( ){
   return( sdAbsPressure );
}
////////////////////
void StationData::setRain1h( QString s )
{
   sdRain1h  = s;
}
QString StationData::rain1h( ){
   return( sdRain1h );
}
void StationData::setRain24h( QString s )
{
   sdRain24h  = s;
}
QString StationData::rain24h( ){
   return( sdRain24h );
}
void StationData::setRain1w( QString s )
{
   sdRain1w  = s;
}
QString StationData::rain1w( ){
   return( sdRain1w );
}
void StationData::setRain1m( QString s )
{
   sdRain1m  = s;
}
QString StationData::rain1m( ){
   return( sdRain1m );
}
void StationData::setRainTotal( QString s )
{
   sdRainTotal  = s;
}
QString StationData::rainTotal( ){
   return( sdRainTotal );
}
///////////////////////
void StationData::setTendency( QString s )
{
   sdTendency  = s;
}
QString StationData::tendency( ){
   return( sdTendency );
}
//
void StationData::setForecast( QString s )
{
   sdForecast  = s;
}
QString StationData::forecast( ){
   return( sdForecast );
}
/**

*/

